package jd.cn.dao.impl;

import jd.cn.dao.sysRole.SysRoleMapper;
import jd.cn.pojo.SysRole;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

public class SysRoleMapperImpl extends SqlSessionDaoSupport implements SysRoleMapper {
  
    @Override
    public List<SysRole> selectRoleList(SysRole sysRole) {
        return this.getSqlSession().selectList("jd.cn.sysRole.SysRoleMapper.selectRoleList",sysRole);
    }

    /**
     * 添加角色
     *
     * @param role
     * @return
     */
    @Override
    public int addRole(SysRole role) {
        return this.getSqlSession().update("jd.cn.sysRole.SysRoleMapper.addRole",role);
    }
}
